sqlserver exists 與 in 的區別
使用 EXISTS 方式 select * from A a where EXISTS(select b.mainInfoId from B b where b.mainInfoId=a.mai ...
使用 EXISTS 方式 select * from A a where EXISTS(select b.mainInfoId from B b where b.mainInfoId=a.mai ...
今天遇到表的刪除重建問題,稍微測試了一下。具體內容如下: 1.常規表的重建 if exists(select * from sys.objects where name='tmp' and typ ...